var showOrder={
    showOrderInit:function () {
        $.ajax({
            url:application.contextPath+"/base/order/queryOrderOrDetailById",
            dataType:"json",
            type:"POST",
            data:{
                "orderId":orderId,
                "detailId":detailId
            },
            success:function (res) {
                var data=res.data;
                $("#tradeNo").val(data.tradeNo);
                $("#tradeType").val(data.tradeType);
                $("#prepayId").val(data.prepayId);
                $("#trueName").val(data.trueName);
                $("#lessonName").val(data.lessonName);
                $("#orderDate").val(data.orderDate);
                $("#price").val(data.price);
                $("#quantity").val(data.quantity);
                $("#amounts").val(data.amounts);
                $("#orderAmount").val(data.orderAmount);
                $("#status").val(pubForm.getOrderStatus(data));
            }
        });
    },
    toLessonScheduler:function () {
        console.log("aaa");
        pubOptBtn.getOptBtn('order',menu,orderId);
        loadUtil = new Load($);
        loadUtil.load({
            container: '#homeContent',
            url: application.contextPath + "/base/order/toLessonScheduler?detailId=" + detailId+"&orderId="+orderId
        });
        //window.open(application.contextPath + "/base/order/toLessonScheduler?detailId=" + detailId,'查看课时列表',"height=300, width=700,left=300,right=300, top=300")
    }
};

$(document).ready(function(){
    showOrder.showOrderInit();
});